import urllib2

from BeautifulSoup import BeautifulSoup

#Or retrieve it from the web, etc. 
html_data = '<tag><fooId></fooId></tag>'


url = "http://arbirk.net"
#http://www.nordpoolspot.com/reports/Wind-poer/Wind-Power-Prognosis/"
#
result = urllib2.urlopen(url)
#open('arbirk.net/cypresscottage/Cypress Cottage.html','r').read()

#Create the soup object from the HTML data
soup = BeautifulSoup(result)

test = soup.find('div', 'table')

test2 =test.table

test3=test2('tr')[1]

#i = 5

print 'Content-Type: text/plain'
print ''
#while True: {
#    print test3
#	i = i+1
#	}
#    if test2('tr')[i] == none = true:
#        break
#print test2('tr')[i]

for i in range(1,24):
	test4=test2('tr')[i]
	print test4('td')[0].string
	print test4('td')[1].string
	print test4('td')[2].string

print 'Jubii! Det virker!!!!' 
	

